package com.hsp.Demo_02_array;

public class Demo_08 {
    public static void main(String[] args) {
        /*
            打印如下数字：
                0 0 0 0 0 0 0
                1 1 1 1 1 1 1
                2 2 2 2 2 2 2
                3 3 3 3 3 3 3
         */
        //1、定义一个二维数组：
        int[][] arr = {{0, 0, 0, 0, 0, 0},
                        {1, 1, 1, 1, 1, 1},
                        {2, 2, 2, 2, 2, 2},
                        {3, 3, 3, 3, 3, 3}};

        for(int i = 0; i < arr.length; i++){
            for(int j = 0; j < arr[i].length; j++){
                System.out.print(arr[i][j] + " ");
            }
            System.out.println();
        }
    }
}
